package test6;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;

public class test {
    public static  void main(String[] args){
        BufferedReader br=null;
        try{
            FileReader fr=new FileReader("e:\\a.txt");
            br=new BufferedReader(fr);
            FileWriter fw=new FileWriter("e:\\a1.txt");
            String s=null;
            BufferedWriter bw=new BufferedWriter(fw);
            while((s=br.readLine())!=null){
               // System.out.println(s);
                bw.write(s);

            }
        }catch (Exception e){
            e.printStackTrace();
        }finally {
            try {
                br.close();

            }catch (Exception e){
                e.printStackTrace();
            }
        }
    }
}
